
local cmdname = "aids_slap"

if CLIENT then

	AIDS.RegisterCommand( "Slap", cmdname, "slap" ) 

else
	
	local function SlapPlayer( ply, cmd, args )
	
		local target = AIDS.GetPlayer( args[1] )
		
		if target then
		
			target:EmitSound( "Player.FallDamage" )
			target:SetVelocity( Vector( math.random( -250, 250 ), math.random( -250, 250 ), 500 ) )
			
			AIDS.ChatPrint( { target, " got slapped around by ", ply, "." } )
		
		end
	
	end
	
	AIDS.AddCommand( SlapPlayer, cmdname )
	
end